export default {
  state: {
    menuList: [1, 2, 3, 4, 5],
    authList: [2, 3, 5]
  },
  getters: {
    menuList: state => {
      return state.menuList
    },
    authList: state => {
      return state.authList
    }
  },
  mutations: {
    setMenuList (state, value) {
      state.menuList = value
    },
    setAuthList (state,value) {
      state.authList = value
    }
  },
  actions: {
    commitAll ({commit}, data) {
      commit('setMenuList', data.menuList)
      commit('setAuthList', data.authList)
    }
  }
}